package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * 
*    
* 项目名称：ArtworkArt   
* 类名称：SpecialInformationParser   
* 类描述：拍卖会-专场详情-专场信息实体类
* 创建人：耿卫斌   
* 创建时间：2017-3-11 下午3:19:21   
*
 */
public class SpecialInformationParser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private SpecialInformation_SpecialInfo specialinfo=new SpecialInformation_SpecialInfo();//专场详细信息
	private SpecialInformation_AuctionInfo auctioninfo=new SpecialInformation_AuctionInfo();//拍卖会详细信息
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		JSONObject specialInfo_obj=obj.optJSONObject("specialinfo");
		specialinfo.setAuction_address(specialInfo_obj.optString("auction_address"));
		specialinfo.setAuction_end_time(specialInfo_obj.optString("auction_end_time"));
		specialinfo.setAuction_latitude(specialInfo_obj.optString("auction_latitude"));
		specialinfo.setAuction_longitude(specialInfo_obj.optString("auction_longitude"));
		specialinfo.setAuction_start_time(specialInfo_obj.optString("auction_start_time"));
		specialinfo.setId(specialInfo_obj.optString("id"));
		specialinfo.setImgurl(specialInfo_obj.optString("imgurl"));
		specialinfo.setLot_num(specialInfo_obj.optString("lot_num"));
		specialinfo.setLotrecord_num(specialInfo_obj.optString("lotrecord_num"));
		specialinfo.setPreview_address(specialInfo_obj.optString("preview_address"));
		specialinfo.setPreview_end_time(specialInfo_obj.optString("preview_end_time"));
		specialinfo.setPreview_latitude(specialInfo_obj.optString("preview_latitude"));
		specialinfo.setPreview_longitude(specialInfo_obj.optString("preview_longitude"));
		specialinfo.setPreview_start_time(specialInfo_obj.optString("preview_start_time"));
		specialinfo.setTitle(specialInfo_obj.optString("title"));
		specialinfo.setTurnover(specialInfo_obj.optString("turnover"));
		specialinfo.setTurnoverrate(specialInfo_obj.optString("turnoverrate"));
		specialinfo.setUnit(specialInfo_obj.optString("unit"));
		specialinfo.setVideourl(specialInfo_obj.optString("videourl"));
		JSONObject auctionInfo_obj=obj.optJSONObject("auctioninfo");
		auctioninfo.setAddress(auctionInfo_obj.optString("address"));
		auctioninfo.setEnd_time(auctionInfo_obj.optString("end_time"));
		auctioninfo.setId(auctionInfo_obj.optString("id"));
		auctioninfo.setImgurl(auctionInfo_obj.optString("imgurl"));
		auctioninfo.setLot_num(auctionInfo_obj.optString("lot_num"));
		auctioninfo.setLotrecord_num(auctionInfo_obj.optString("lotrecord_num"));
		auctioninfo.setSeller_name(auctionInfo_obj.optString("seller_name"));
		auctioninfo.setSpecial_num(auctionInfo_obj.optString("special_num"));
		auctioninfo.setStart_time(auctionInfo_obj.optString("start_time"));
		auctioninfo.setStatus(auctionInfo_obj.optInt("status"));
		auctioninfo.setHeight(auctionInfo_obj.optInt("height"));
		auctioninfo.setTitle(auctionInfo_obj.optString("title"));
	}
	public SpecialInformation_SpecialInfo getSpecialinfo() {
		return specialinfo;
	}
	public void setSpecialinfo(SpecialInformation_SpecialInfo specialinfo) {
		this.specialinfo = specialinfo;
	}
	public SpecialInformation_AuctionInfo getAuctioninfo() {
		return auctioninfo;
	}
	public void setAuctioninfo(SpecialInformation_AuctionInfo auctioninfo) {
		this.auctioninfo = auctioninfo;
	}
	public SpecialInformationParser() {
		super();
	}
	public SpecialInformationParser(SpecialInformation_SpecialInfo specialinfo,
									SpecialInformation_AuctionInfo auctioninfo) {
		super();
		this.specialinfo = specialinfo;
		this.auctioninfo = auctioninfo;
	}
	@Override
	public String toString() {
		return "SpecialInformationParser [specialinfo=" + specialinfo
				+ ", auctioninfo=" + auctioninfo + "]";
	}
	public  class SpecialInformation_SpecialInfo implements Serializable {
		private static final long serialVersionUID = 1L;
		private String id;//专场id
		private String title;//专场名称
		private String imgurl;//专场logo
		private String preview_start_time;//预展开始时间
		private String preview_end_time;//预展结束时间
		private String preview_address;//预展地址
		private String auction_start_time;//拍卖开始时间
		private String auction_end_time;//拍卖结束时间
		private String lotrecord_num;//
		private String lot_num;//
		private String auction_address;//
		private String preview_latitude;//预展地址维度
		private String preview_longitude;//预展地址经度
		private String auction_latitude;//拍卖地址纬度
		private String auction_longitude;//拍卖地址经度
		private String turnover;//成交额
		private String unit;//成交额单位
		private String turnoverrate;//成交率
		private String videourl;//视频
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public String getImgurl() {
			return imgurl;
		}
		public void setImgurl(String imgurl) {
			this.imgurl = imgurl;
		}
		public String getPreview_start_time() {
			return preview_start_time;
		}
		public void setPreview_start_time(String preview_start_time) {
			this.preview_start_time = preview_start_time;
		}
		public String getPreview_end_time() {
			return preview_end_time;
		}
		public void setPreview_end_time(String preview_end_time) {
			this.preview_end_time = preview_end_time;
		}
		public String getPreview_address() {
			return preview_address;
		}
		public void setPreview_address(String preview_address) {
			this.preview_address = preview_address;
		}
		public String getAuction_start_time() {
			return auction_start_time;
		}
		public void setAuction_start_time(String auction_start_time) {
			this.auction_start_time = auction_start_time;
		}
		public String getAuction_end_time() {
			return auction_end_time;
		}
		public void setAuction_end_time(String auction_end_time) {
			this.auction_end_time = auction_end_time;
		}
		public String getLotrecord_num() {
			return lotrecord_num;
		}
		public void setLotrecord_num(String lotrecord_num) {
			this.lotrecord_num = lotrecord_num;
		}
		public String getLot_num() {
			return lot_num;
		}
		public void setLot_num(String lot_num) {
			this.lot_num = lot_num;
		}
		public String getAuction_address() {
			return auction_address;
		}
		public void setAuction_address(String auction_address) {
			this.auction_address = auction_address;
		}
		public String getPreview_latitude() {
			return preview_latitude;
		}
		public void setPreview_latitude(String preview_latitude) {
			this.preview_latitude = preview_latitude;
		}
		public String getPreview_longitude() {
			return preview_longitude;
		}
		public void setPreview_longitude(String preview_longitude) {
			this.preview_longitude = preview_longitude;
		}
		public String getAuction_latitude() {
			return auction_latitude;
		}
		public void setAuction_latitude(String auction_latitude) {
			this.auction_latitude = auction_latitude;
		}
		public String getAuction_longitude() {
			return auction_longitude;
		}
		public void setAuction_longitude(String auction_longitude) {
			this.auction_longitude = auction_longitude;
		}
		public String getTurnover() {
			return turnover;
		}
		public void setTurnover(String turnover) {
			this.turnover = turnover;
		}
		public String getUnit() {
			return unit;
		}
		public void setUnit(String unit) {
			this.unit = unit;
		}
		public String getTurnoverrate() {
			return turnoverrate;
		}
		public void setTurnoverrate(String turnoverrate) {
			this.turnoverrate = turnoverrate;
		}
		public String getVideourl() {
			return videourl;
		}
		public void setVideourl(String videourl) {
			this.videourl = videourl;
		}
		public SpecialInformation_SpecialInfo() {
			super();
		}
		public SpecialInformation_SpecialInfo(String id, String title,
											  String imgurl, String preview_start_time,
											  String preview_end_time, String preview_address,
											  String auction_start_time, String auction_end_time,
											  String lotrecord_num, String lot_num, String auction_address,
											  String preview_latitude, String preview_longitude,
											  String auction_latitude, String auction_longitude,
											  String turnover, String unit, String turnoverrate,
											  String videourl) {
			super();
			this.id = id;
			this.title = title;
			this.imgurl = imgurl;
			this.preview_start_time = preview_start_time;
			this.preview_end_time = preview_end_time;
			this.preview_address = preview_address;
			this.auction_start_time = auction_start_time;
			this.auction_end_time = auction_end_time;
			this.lotrecord_num = lotrecord_num;
			this.lot_num = lot_num;
			this.auction_address = auction_address;
			this.preview_latitude = preview_latitude;
			this.preview_longitude = preview_longitude;
			this.auction_latitude = auction_latitude;
			this.auction_longitude = auction_longitude;
			this.turnover = turnover;
			this.unit = unit;
			this.turnoverrate = turnoverrate;
			this.videourl = videourl;
		}
		@Override
		public String toString() {
			return "SpecialInformation_SpecialInfo [id=" + id + ", title="
					+ title + ", imgurl=" + imgurl + ", preview_start_time="
					+ preview_start_time + ", preview_end_time="
					+ preview_end_time + ", preview_address=" + preview_address
					+ ", auction_start_time=" + auction_start_time
					+ ", auction_end_time=" + auction_end_time
					+ ", lotrecord_num=" + lotrecord_num + ", lot_num="
					+ lot_num + ", auction_address=" + auction_address
					+ ", preview_latitude=" + preview_latitude
					+ ", preview_longitude=" + preview_longitude
					+ ", auction_latitude=" + auction_latitude
					+ ", auction_longitude=" + auction_longitude
					+ ", turnover=" + turnover + ", unit=" + unit
					+ ", turnoverrate=" + turnoverrate + ", videourl="
					+ videourl + "]";
		}
	}
	public class SpecialInformation_AuctionInfo implements Serializable {
		private static final long serialVersionUID = 1L;
		private String id;//拍卖会id
		private String title;//拍卖会名称
		private String imgurl;//拍卖会主题图
		private String lotrecord_num;//拍品备案数量
		private String special_num;//专场数量
		private String lot_num;//拍品数量
		private String seller_name;//机构名称
		private String address;//所在城市
		private int status;//拍卖会的状态 当是往期的时候状态为0  1.待预展 2.预展中 3.拍卖中
		private int height;//拍卖会图片高度
		private String start_time;//拍卖会开始时间
		private String end_time;//拍卖会结束时间
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public String getImgurl() {
			return imgurl;
		}
		public void setImgurl(String imgurl) {
			this.imgurl = imgurl;
		}
		public String getLotrecord_num() {
			return lotrecord_num;
		}
		public void setLotrecord_num(String lotrecord_num) {
			this.lotrecord_num = lotrecord_num;
		}
		public String getSpecial_num() {
			return special_num;
		}
		public void setSpecial_num(String special_num) {
			this.special_num = special_num;
		}
		public String getLot_num() {
			return lot_num;
		}
		public void setLot_num(String lot_num) {
			this.lot_num = lot_num;
		}
		public String getSeller_name() {
			return seller_name;
		}
		public void setSeller_name(String seller_name) {
			this.seller_name = seller_name;
		}
		public String getAddress() {
			return address;
		}
		public void setAddress(String address) {
			this.address = address;
		}
		public int getStatus() {
			return status;
		}
		public void setStatus(int status) {
			this.status = status;
		}
		public String getStart_time() {
			return start_time;
		}
		public void setStart_time(String start_time) {
			this.start_time = start_time;
		}
		public String getEnd_time() {
			return end_time;
		}
		public void setEnd_time(String end_time) {
			this.end_time = end_time;
		}
		public int getHeight() {
			return height;
		}
		public void setHeight(int height) {
			this.height = height;
		}
		public SpecialInformation_AuctionInfo() {
			super();
		}

		public SpecialInformation_AuctionInfo(String id, String title, String imgurl, String lotrecord_num, String special_num, String lot_num, String seller_name, String address, int status, int height, String start_time, String end_time) {
			this.id = id;
			this.title = title;
			this.imgurl = imgurl;
			this.lotrecord_num = lotrecord_num;
			this.special_num = special_num;
			this.lot_num = lot_num;
			this.seller_name = seller_name;
			this.address = address;
			this.status = status;
			this.height = height;
			this.start_time = start_time;
			this.end_time = end_time;
		}

		@Override
		public String toString() {
			return "SpecialInformation_AuctionInfo{" +
					"id='" + id + '\'' +
					", title='" + title + '\'' +
					", imgurl='" + imgurl + '\'' +
					", lotrecord_num='" + lotrecord_num + '\'' +
					", special_num='" + special_num + '\'' +
					", lot_num='" + lot_num + '\'' +
					", seller_name='" + seller_name + '\'' +
					", address='" + address + '\'' +
					", status=" + status +
					", height=" + height +
					", start_time='" + start_time + '\'' +
					", end_time='" + end_time + '\'' +
					'}';
		}
	}
	
}
